import router from '../router'

const config = {
    title: '我是配置的标题',
    description: '我是配置的描述'
}


const judgeResponseCode = function (response) {
    // alert(response.data.code);
    // 没有权限
    if (response.data.code === 403) {
        alert(response.data.message);

    }

    //没有登录
    if (response.data.code ===  999) {
        alert(response.data.message);
        router.push('/Login');  //页面跳转,
    }


};
export {config, judgeResponseCode}